package com.jubao.ejb.entity;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "couponitem_tbl", schema = "jubao_database", uniqueConstraints = {})
public class CouponItem extends GeneEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7537121909790227124L;

	@Column(nullable = false, unique = true, updatable = false)
	private String id;// unique

	private Long issueId; // 抽奖期号


	private String lotteryNumber1;// 抽奖号码

	private String lotteryNumber2;

	private String lotteryNumber3;

	private String lotteryNumber4;

	private String lotteryNumber5;

	
	@Basic(fetch = FetchType.LAZY)
	@Column(length = 512)
	private String shortDesc;


	@ManyToOne
	Coupon coupon; // coupon

	@ManyToOne
	User user; // 抽奖人

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Long getIssueId() {
		return issueId;
	}

	public void setIssueId(Long issueId) {
		this.issueId = issueId;
	}

	public String getLotteryNumber1() {
		return lotteryNumber1;
	}

	public void setLotteryNumber1(String lotteryNumber1) {
		this.lotteryNumber1 = lotteryNumber1;
	}

	public String getLotteryNumber2() {
		return lotteryNumber2;
	}

	public void setLotteryNumber2(String lotteryNumber2) {
		this.lotteryNumber2 = lotteryNumber2;
	}

	public String getLotteryNumber3() {
		return lotteryNumber3;
	}

	public void setLotteryNumber3(String lotteryNumber3) {
		this.lotteryNumber3 = lotteryNumber3;
	}

	public String getLotteryNumber4() {
		return lotteryNumber4;
	}

	public void setLotteryNumber4(String lotteryNumber4) {
		this.lotteryNumber4 = lotteryNumber4;
	}

	public String getLotteryNumber5() {
		return lotteryNumber5;
	}

	public void setLotteryNumber5(String lotteryNumber5) {
		this.lotteryNumber5 = lotteryNumber5;
	}

	public Coupon getCoupon() {
		return coupon;
	}

	public void setCoupon(Coupon coupon) {
		this.coupon = coupon;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getShortDesc() {
		return shortDesc;
	}

	public void setShortDesc(String shortDesc) {
		this.shortDesc = shortDesc;
	}
}
